3.4.80 \(\int \frac {\log (c (d+e x^{-n}))}{x (c e-(1-c d) x^n)} \, dx\) [380]

Optimal. Leaf size=26 \[ \frac {\text {Li}_2\left (1-c \left (d+e x^{-n}\right )\right )}{c e n} \]

[Out]

polylog(2,1-c*(d+e/(x^n)))/c/e/n

________________________________________________________________________________________

Rubi [A]
time = 0.10, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {2525, 2459, 2440, 2438} \begin {gather*} \frac {\text {PolyLog}\left (2,1-c \left (d+e x^{-n}\right )\right )}{c e n} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Log[c*(d + e/x^n)]/(x*(c*e - (1 - c*d)*x^n)),x]

[Out]

PolyLog[2, 1 - c*(d + e/x^n)]/(c*e*n)

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2440

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + c*e*(x/g)])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2459

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)/(x_))^(q_.)*(x_)^(m_.), x_Symbol]
 :> Int[(g + f*x)^q*(a + b*Log[c*(d + e*x)^n])^p, x] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, q}, x] && EqQ[m,
q] && IntegerQ[q]

Rule 2525

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.)*((f_) + (g_.)*(x_)^(s_))^(r_.),
 x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(f + g*x^(s/n))^r*(a + b*Log[c*(d + e*x)^p])^q,
x], x, x^n], x] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, q, r, s}, x] && IntegerQ[r] && IntegerQ[s/n] && Intege
rQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0])

Rubi steps

\begin {align*} \int \frac {\log \left (c \left (d+e x^{-n}\right )\right )}{x \left (c e-(1-c d) x^n\right )} \, dx &=-\frac {\text {Subst}\left (\int \frac {\log (c (d+e x))}{\left (c e+\frac {-1+c d}{x}\right ) x} \, dx,x,x^{-n}\right )}{n}\\ &=-\frac {\text {Subst}\left (\int \frac {\log (c (d+e x))}{-1+c d+c e x} \, dx,x,x^{-n}\right )}{n}\\ &=-\frac {\text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,-1+c d+c e x^{-n}\right )}{c e n}\\ &=\frac {\text {Li}_2\left (1-c d-c e x^{-n}\right )}{c e n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 34, normalized size = 1.31 \begin {gather*} \frac {\text {Li}_2\left (-x^{-n} \left (c e-x^n+c d x^n\right )\right )}{c e n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Log[c*(d + e/x^n)]/(x*(c*e - (1 - c*d)*x^n)),x]

[Out]

PolyLog[2, -((c*e - x^n + c*d*x^n)/x^n)]/(c*e*n)

________________________________________________________________________________________

Maple [A]
time = 2.57, size = 24, normalized size = 0.92

method result size
derivativedivides \(\frac {\dilog \left (c d +c e \,x^{-n}\right )}{n c e}\) \(24\)
default \(\frac {\dilog \left (c d +c e \,x^{-n}\right )}{n c e}\) \(24\)
risch \(\text {Expression too large to display}\) \(1900\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(c*(d+e/(x^n)))/x/(c*e-(-c*d+1)*x^n),x,method=_RETURNVERBOSE)

[Out]

1/n*dilog(c*d+c*e/(x^n))/c/e

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(d+e/(x^n)))/x/(c*e-(-c*d+1)*x^n),x, algorithm="maxima")

[Out]

n*integrate(log(x)/(c*d*x*x^n + c*x*e), x) + (log(d*x^n + e)*log(x) + log(c)*log(x) - log(x)*log(x^n))*e^(-1)/
c - e^(-1)*log(c)*log(((c*d - 1)*x^n + c*e)/(c*d - 1))/(c*n) - (log(d*x^n + e)*log(((c*d^2 - d)*x^n + (c*d - 1
)*e)*e^(-1) + 1) + dilog(-((c*d^2 - d)*x^n + (c*d - 1)*e)*e^(-1)))*e^(-1)/(c*n) + (log(x^n)*log((c*d - 1)*e^(n
*log(x) - 1)/c + 1) + dilog(-(c*d - 1)*e^(n*log(x) - 1)/c))*e^(-1)/(c*n)

________________________________________________________________________________________

Fricas [A]
time = 0.45, size = 30, normalized size = 1.15 \begin {gather*} \frac {{\rm Li}_2\left (-\frac {c d x^{n} + c e}{x^{n}} + 1\right ) e^{\left (-1\right )}}{c n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(d+e/(x^n)))/x/(c*e-(-c*d+1)*x^n),x, algorithm="fricas")

[Out]

dilog(-(c*d*x^n + c*e)/x^n + 1)*e^(-1)/(c*n)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(c*(d+e/(x**n)))/x/(c*e-(-c*d+1)*x**n),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(d+e/(x^n)))/x/(c*e-(-c*d+1)*x^n),x, algorithm="giac")

[Out]

integrate(log(c*(d + e/x^n))/(((c*d - 1)*x^n + c*e)*x), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {\ln \left (c\,\left (d+\frac {e}{x^n}\right )\right )}{x\,\left (c\,e+x^n\,\left (c\,d-1\right )\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(c*(d + e/x^n))/(x*(c*e + x^n*(c*d - 1))),x)

[Out]

int(log(c*(d + e/x^n))/(x*(c*e + x^n*(c*d - 1))), x)

________________________________________________________________________________________